<?php 
include_once '../AtacCommunicator/ACBusWaitingTimes.php';
include_once '../Exceptions/CommunicationException.php';
include_once '../InfoManager/InfoManager.php';
include_once '../Model/BusStop.php';
include_once '../Model/Location.php';
include_once '../Model/Address.php';
include_once '../Model/GPS.php';
include_once '../Model/BusLinePath.php';


	if (isset($_GET["line"]))
	{
		try {
			
			$line = RMobUtils::escape_var($_GET["line"]);
			
			$im = new InfoManager();
			$arr = $im->getPathIDsForLine($line);
			
			echo "<LINE><LINENUMBER>$line</LINENUMBER>";
			echo "<PATHIDS>";
			foreach($arr as $pathID)
			{
				echo "<PATHID>$pathID</PATHID>";
				
			}
			echo "</PATHIDS>";
			echo "</LINE>";
			
			/**
			Vi siete dimenticati di togliere questa riga ?
		
			echo $blp->toXML(EXTENDED_MODE);
			*/
			
			}
		catch (Exception $e) {
			echo $e->toXML(EXTENDED_MODE);
		}
	}



?>